<!DOCTYPE html>
<html lang="en">
<head>
    <title>用户管理</title>
</head>
<body class="fixed-left">
<div id="wrapper">
    <#include "../header.html">
        <div class="content-page">
            <div class="content">
                <div class="container">
                    <div class="row">
                        <div class="col-md-6">
                            <div class="panel panel-color panel-primary">
                                <div class="panel-heading">
                                    <h3 class="panel-title">编辑分类</h3>
                                </div>
                                <div class="panel-body">
                                    <form class="form-horizontal" role="form" id="global-form" action="/admin/category/editsave" method="post">
                                        <input type="hidden" name="id" value="${info.id}" />
                                        <div class="form-group">
                                            <label class="col-md-3 control-label">分类名称</label>
                                            <div class="col-md-9">
                                                <input type="text" class="form-control" name="name" placeholder="分类名称"
                                                       value="${info.name}" required="required" aria-required="true"/>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-3 control-label">父级分类</label>
                                            <div class="col-md-9">
                                                <select name="parentid" class="select2 form-control" >
                                                    <option value="0">顶级分类</option>
                                                    <#list categoryList as cate>
                                                        <option <#if info.parentid==cate.id>selected="selected"</#if> value="${cate.id}">${cate.name}</option>
                                                    </#list>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-3 control-label">排序</label>
                                            <div class="col-md-9">
                                                <input type="text" class="form-control" name="listorder" placeholder="排序"
                                                       value="${info.listorder}" required="required" aria-required="true"/>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-3 control-label">状态</label>
                                            <div class="col-md-9">
                                                <input type="radio" <#if info.status==1>checked="checked"</#if> name="status" value="1">已发布
                                                <input type="radio" <#if info.status==0>checked="checked"</#if> name="status" value="0">未发布
                                            </div>
                                        </div>

                                        <input type="hidden" name="allow_install" id="allow_install"/>
                                        <div class="clearfix pull-right">
                                            <input type="submit" class="btn btn-primary waves-effect waves-light" name="保存" />
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>



                    </div>
                </div>
            </div>
        </div>
</div>
<#include "../footer.html">
</body>
</html>